<%--
  Created by IntelliJ IDEA.
  User: 赵朋立
  Date: 2022/9/23
  Time: 15:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>四大作用域</title>
</head>
<body>
     <%--
       request:请求级作用域
       session：会话级作用域
       application:服务器级作用域
     --%>
    <%
        request.setAttribute("aa","请求级作用域");
        session.setAttribute("bb","会话级作用域");
        application.setAttribute("cc","服务器级作用域");
        //页面跳转:
        //请求转发跳转:
       // request.getRequestDispatcher("/success.jsp").forward(request,response);
        //重定向跳转:
        response.sendRedirect("/success.jsp");
    %>

</body>
</html>
